<%@page import="domain.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<div id="workspace" class="col-md-8">
  		
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>序号</th>
                  <th>用户名</th>
                  <th>密码</th>
                  <th>类型</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <%int i =1; %>
              <c:forEach var="user" items="${requestScope.users }">
              	<tr>
                  <td><%=i++ %></td>
                  <td>${user.userName }</td>
                  <td>${user.pwd }</td>
                   <td>${user.category }</td>
                  <td><a href="#">编辑</a>&nbsp;&nbsp;<a href="../user.con?id=${user.id}&userName=${user.userName}&pwd=${user.pwd}&work=delete">删除</a></td>
                </tr>
              </c:forEach>
              <%request.removeAttribute("users"); %>
              </tbody>
            </table>
          
  	</div>
</body>
</html>